#ifndef __QMDI_CLIENT_H__
#define __QMDI_CLIENT_H__

/**
 * \file qmdiclient.h
 * \brief Definition of the qmdi client class
 * \author Diego Iastrubni (diegoiast@gmail.com)
 * License LGPL 2 or 3
 * \see qmdiClient
 */
 
 // $Id: qmdiclient.h 441 2011-08-13 09:47:30Z diegoiast $

// the reason for including this file, and not declare the classes
// is for the developer using this library - one single include
#include "qmdiactiongroup.h"

#include "qmdiactiongrouplist.h"

class QString;
class qmdiServer;
class qmdiHost;

class qmdiClient
{
public:
	qmdiClient( const QString newName=QString() );
	virtual ~qmdiClient();

	virtual bool closeClient();
	virtual bool canCloseClient();
	virtual QString mdiClientFileName();

	virtual void on_client_merged( qmdiHost* host );
	virtual void on_client_unmerged( qmdiHost* host );
	
	qmdiActionGroupList	menus;
	qmdiActionGroupList	toolbars;
	qmdiServer*		mdiServer;
	QString			mdiClientName;

friend class qmdiHost;

};

#endif // __QMDI_CLIENT_H__
